<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<style type="text/css">
		td.jishu{
			background: red url() 0 0 no-repeat;

		}

		td.shuanshu{
			background: blue url() 0 0 no-repeat;
		}
	</style>
</head>
<body>
	<script type="text/javascript">

	document.write("<table>")

		// for(i=9;i>=1;i--)          //循环判断,
		// {
		// 	document.write("<tr>")
		// 	for(k=1;k<=i;k++){
		// 		if((k*i)%2==0){
		// 			document.write("<td class='shuanshu'>")
		// 		}else{
		// 			document.write("<td class='jishu'>")
		// 		}
				
		// 		document.write(k+"*"+i+"="+(k*i)+" ")
		// 		document.write("</td>")
		// 	}

		// 	document.write("</tr>")
		// }




		for(i=1;i<=9;i++){
			 document.write("/tr")
				for (k=1;k<=i;k++) {
			document.write(k+"*"+i+"="+(k*i)+" ")
			 document.write("</td")	
			};
			 document.write("</tr")
		}

	document.write("</table>")



// document.write(a+"="+i+"*"+k);

	</script>

</body>
</html>